﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Private_Operator_EditReservation : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ButtonFind_Click(object sender, EventArgs e)
    {
        //Pravq go po tozi na4in za6toto moje za edna staq da ima mnogo rezervacii na razli4ni hora za razli4ni datai
        //zatova tarsq rezervaciqta i konkreten 4ovek za dadena staq i podavam to4no taq staq 
        string roomNumber="";
        
        DAO.Reservation myReservation = new DAO.Reservation();
        
        DAO.Reservation reservations;
        
        reservations = myReservation.GetReservation(TextBoxRoomNumber.Text);
       
            if (reservations.ClientEgn == TextBoxEGN.Text)
            {
                roomNumber = reservations.RoomNumber;
            }
        

        DAO.Reservation changedReservation = new DAO.Reservation();
        changedReservation.ChangeStatus( roomNumber,
                                        DropDownListStatus.SelectedValue.ToString());
        LabelStatus.Visible = true;

    }
    protected void RadioButtonList1_Load(object sender, EventArgs e)
    {
       
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        
    }
    protected void ButtonChangeStatus_Click(object sender, EventArgs e)
    {
        
    }
}
